package com.geostar.constructionland.analyse.entity.alyresult;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author yelll
 * @since 2020-6-1 15:22
 * 行政区分析结果
 **/
@Data
@TableName("jsyd_fx_xzqfx")
public class AlyResultXzq {
    @JsonProperty("FXID")
    @TableId(value = "fxid",type = IdType.ASSIGN_UUID)
    private String alyId;

    @JsonProperty("XZQHDM")
    @JsonAlias("XZQHDM")
    @TableField(value = "xzqhdm")
    private String areaCode;

    @JsonProperty("XZQHMC")
    @JsonAlias("XZQHMC")
    @TableField(value = "xzqhmc")
    private String areaName;

    @JsonProperty("DK_ID")
    @JsonAlias("DK_ID")
    @TableField(value = "dkbs")
    private String landCode;

    @TableField(value = "fxbs")
    private String alyCode;

    @TableField(value = "zymj")
    private Double ocyArea;

    @ApiModelProperty("坐标内容在mongodb中主键")
    @TableField(value = "mongo_id")
    private String mongoId;

    @ApiModelProperty("地块geojson")
    @TableField(exist = false)
    @JsonProperty("YZGeoJSON")
    private String geojson;

    @JsonProperty("YZMJ")
    @JsonAlias("YZMJ")
    @TableField(value = "zymj_ys")
    private Double ocyAreaOri;

    @TableField(exist = false)
    private Double ocyAreaBefore;

    @TableField(value = "YzGeoJson")
    private String realYzGeoJson;


    @JsonAlias("DK_MJ")
    @JsonProperty("DK_MJ")
    @TableField(exist = false)
    private String dkmj;
}
